package com.ljz.controller.feign;

import com.ljz.api.SpuClint;
import com.ljz.api.bean.SpuBean;
import com.ljz.common.core.controller.MyBaseController;
import com.ljz.common.utils.ReturnResult;
import com.ljz.service.SpuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
public class SpuFeignController extends MyBaseController implements SpuClint {

    @Autowired
    SpuService spuService;


    @Override
    public ReturnResult updateStock(List<SpuBean> spuBeanList) {
        int res = spuService.updateSpuStock(spuBeanList);
        return updateResult(res);
    }
}
